# -*- coding:utf-8 -*-
# @Time: 2020-08-29 17:51
# @Author: aniu
# @File: manager.py.py

from flask_script import Server

from application import app, manager
from logs.logs import set_log
from route.route import *

manager.add_command('runserver', Server(host='0.0.0.0', port=5000), use_debugger=True)

def main():

    manager.run()


if __name__ == '__main__':
    try:
        import sys
        sys.exit(main())
    except Exception as e:
        app.logger.info(e)